package com.atmc.service.impl;

import com.atmc.entity.AcomentNum;
import com.atmc.mapper.AcomentNumMapper;
import com.atmc.service.AcomentNumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: SpringCloud1216
 * @BelongsPackage: com.atmc.service.impl
 * @Author: chuyings
 * @CreateTime: 2022-11-13  15:33
 * @Version: 1.0
 */
@Service
public class AcomentNumServiceImpl implements AcomentNumService {
    @Autowired
    AcomentNumMapper acomentNumMapper;
    @Override
    public AcomentNum queryById(Long articleId) {
        return acomentNumMapper.queryById(articleId);
    }

    @Override
    public int insertOne(Long articleId) {
        return acomentNumMapper.insertOne(articleId);
    }

    @Override
    public int updateOne(Long articleId) {
        return acomentNumMapper.updateOne(articleId);
    }
}
